package com.changgou.service.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.changgou.goods.pojo.Goods;
import com.changgou.goods.pojo.Spu;

/**
 * Package: com.changgou.goods.service
 * ClassName: SpuService
 * Description:
 *
 * @Author : 福森森
 * @Create : 2024/8/28 20:00
 */
public interface SpuService extends IService<Spu> {

    /**
     * 新增商品
     * @param goods 商品
     */
    void add(Goods goods);

    Goods findGoodsById(String id);

    void updateByIdWiteObj(String id, Goods goods);

    void audit(String id);

    void pull(String id);

    void put(String id);

    void deleteById(String id);

    void restore(String id);

    void realDelete(String id);
}
